const mongoose = require('mongoose');//引入mongoose
const testsSchema = new mongoose.Schema({
    // 类似
    AnswerTime:String,
    KnowledgePointId: {
        type: mongoose.SchemaTypes.ObjectId,
        ref:'knowledgePointsModel'
    },
    StayTime:String,
    Title:String,
    TypeId: {
        type: mongoose.SchemaTypes.ObjectId,
        ref:'examTypeModel'
    },
});

const testsModel = mongoose.model("testsModel", testsSchema, "tests");
module.exports = {testsModel};